//
//  BKRefreshHeader.swift
//  dysaidao
//
//  Created by 王锦发 on 2020/8/24.
//  Copyright © 2020 王锦发. All rights reserved.
//

import UIKit
import MJRefresh

public class BKRefreshHeader: MJRefreshStateHeader {
    
    var bgColor: UIColor? = .lightWhiteDark27
    
    // MARK: Lifecycle
    public override func prepare() {
        super.prepare()
        
    }
    
    public override func placeSubviews() {
        super.placeSubviews()
        
        self.backgroundColor = bgColor
        
    }
    
    public override func scrollViewContentOffsetDidChange(_ change: [AnyHashable : Any]?) {
        super.scrollViewContentOffsetDidChange(change)
        
    }
    
    public override func scrollViewPanStateDidChange(_ change: [AnyHashable : Any]?) {
        self.backgroundColor = bgColor
    }
    
    public override func beginRefreshing() {
        super.beginRefreshing()
        
    }
    
    public override func executeRefreshingCallback() {
        super.executeRefreshingCallback()
        
    }
    
}
